<?php
/**
 * Created by PhpStorm.
 * User: hulinhua
 * Date: 2018/2/1
 * Time: 上午10:23
 */

namespace app\index\model;

class UserModel
{


    protected $user_name;
    protected $user_phone;
    protected $user_password;
    protected $user_nickname;
    protected $user_sex;
    protected $user_age;
    protected $user_avatar;


    public function bindUserInfo($user){
        if($user){

            $this->user_name = $user['user_name'];
            $this->user_phone = $user['user_phone'];
            $this->user_password = $user['user_password'];
            $this->user_nickname = $user['user_nickname'];
            $this->user_sex = $user['user_sex'];
            $this->user_age = $user['user_age'];
            $this->user_avatar = $user['user_avatar'];
        }

    }


    public function getUser_name()
    {
        return $this->user_name;
    }

    public function getUser_phone()
    {
        return $this->user_phone;
    }

    public function getUser_password()
    {
        return $this->user_password;
    }

    public function getUser_nickname()
    {
        return $this->user_nickname;
    }

    public function getUser_sex()
    {
        return $this->user_sex;
    }

    public function getUser_age()
    {
        return $this->user_age;
    }

    public function getUser_avatar()
    {
        return $this->user_avatar;
    }


}